<h4 class="ellipsis"><?= lang('t.top_destinations'); ?></h4>
<? $cnt = count($popular); ?>
<? for ($i = 0; $i < $cnt; $i++): ?>
        <? if ($i == 4) break; ?>
        <div class="row clearfix">
            <?
            $href = lang_url('search?dest_hot=' . $popular[$i]->name . '&preview=1')
            ?>
            <? $thumbnail = HOST_URL_HOTELS . 'gallery/destinations/' . $popular[$i]->photo_path . '/thumb_130x130/' . $popular[$i]->photo_name; ?>
            <? $preview = HOST_URL_HOTELS . 'gallery/destinations/' . $popular[$i]->photo_path . '/thumb_454x340/' . $popular[$i]->photo_name; ?>

            <a class="clearfix HoverImg" href="<?= $href ?>" data-id="<?= $preview ?>" title="<?= $popular[$i]->name ?>">
                <img src="<?= $thumbnail ?>" alt="<?= $popular[$i]->name ?>" width="90">
            </a>
            <div>

                <h5 class="ellipsis"><a href="<?= $href ?>" ><?= $popular[$i]->name ?></a></h5>
                <p class="ellipsis">
                    <em><?= lang('accommodations'); ?> - <?= ($popular[$i]->accommodations_count + $popular[$i]->hostels_count); ?></em><br> 
                    <em><?= lang('nav.hotels'); ?> - <?= $popular[$i]->hotels_count; ?></em>,  
                    <em><?= lang('nav.holiday_homes'); ?> - <?= ( $popular[$i]->authentic_count); ?></em>
                </p>
            </div>
        </a>
        </div>
    <? endfor; ?>